package com.demo10;

/**
 * Created by Administrator on 2017/4/14.
 */
public class Getif {
    public static void main(String[] args) {
        int x = 45;
        int y = 12;
        if (x > y) {
            System.out.println("变量x大于变量y");
        }
        if (x < y) {
            System.out.println("变量x小于变量y");
        }
        int math = 95;
        int english = 56;
        if (math > 60) {
            System.out.println("数学及格了");
        } else {
            System.out.println("数学没有及格");
        }
        if (english > 60) {
            System.out.println("英语及格了");
        } else {
            System.out.println("英语没有及格");
        }
    }
}
